const wxParse = require('../../templates/wxParse/wxParse');

Page({
  onLoad: function (options) {
    wx.util.request('common.helper.detail', {
      query: `id=${options.id}`
    }).then(detail => {
      wx.setNavigationBarTitle({
        title: detail.title,
      })
      wxParse.wxParse('article', 'html', detail.content, this, 5);
    });
  }
})